//
//  HMRedFlowerDetailsModel.m
//  优学荟管理系统
//
//  Created by 陈辉明 on 2017/12/19.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "HMRedFlowerDetailsModel.h"

@implementation HMRedFlowerDetailsModel

- (instancetype)initWithDict : (NSDictionary*)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+ (instancetype)HMRedFlowerDetailsModelWithDict : (NSDictionary*)dict{
    return [[self alloc]initWithDict:dict];
}

-(void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"setCourseComments"]) {
        for (NSDictionary *dict in value) {
            HMRedFlowerSetDetailsModel *model = [HMRedFlowerSetDetailsModel HMRedFlowerSetDetailsModelWithDict:dict];
            [self.setCourseComments addObject:model];
        }
    }else {
        [super setValue:value forKey:key];
    }
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

-(NSMutableArray<HMRedFlowerSetDetailsModel *> *)setCourseComments {
    if (!_setCourseComments) {
        _setCourseComments = [NSMutableArray new];
    }
    return _setCourseComments;
}

@end




@implementation HMRedFlowerSetDetailsModel

- (instancetype)initWithDict : (NSDictionary*)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+ (instancetype)HMRedFlowerSetDetailsModelWithDict : (NSDictionary*)dict{
    return [[self alloc]initWithDict:dict];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}




@end


